package com.hcandtx.Bms.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcandtx.Bms.bean.ProductCatlog;
import com.hcandtx.Bms.mapper.ProductCatelogMapper;
import com.hcandtx.Bms.service.IProductCatelogService;

@Service("productCatelogService")
public class ProductCatelogServiceImpl implements IProductCatelogService {

	@Autowired
	ProductCatelogMapper productCatelogMapper;
	
	@Override
	public List<ProductCatlog> findAll() {
		// TODO Auto-generated method stub
		return productCatelogMapper.findAll();
	}

	@Override
	public int deleteById(int id) {
		// TODO Auto-generated method stub
		return productCatelogMapper.deleteById(id);
	}

	@Override
	public int insert(ProductCatlog catlogList) {
		// TODO Auto-generated method stub
		return productCatelogMapper.insert(catlogList);
	}

	@Override
	public ProductCatlog findById(int id) {
		// TODO Auto-generated method stub
		return productCatelogMapper.findById(id);
	}

	@Override
	public int update(ProductCatlog catlogs) {
		// TODO Auto-generated method stub
		return productCatelogMapper.update(catlogs);
	}

	

}
